import shAxios from "../plugins/shAxios.js";
import qs from 'qs'

export function searchUsersByTags(tags) {
    return shAxios.get(`/user/search/tags`, {
        params: {tags: tags},
        paramsSerializer: function (params) {
            return qs.stringify(params, { arrayFormat: 'repeat' })
        }
    });
}


export function updateUser(user) {
    return shAxios.post(`/user/update`, user);
}